public class Predicate {


        private String name; 
        private ListOfTypes LT;
        private Orientation or;
       
        
        public Predicate () {
        name = null;
        LT = new ListOfTypes(5); // I defined this object in the constructor with number of types of each predicate = 5.
        or = null;
       
        }
        public Predicate ( String name ){
                this.name = name ;
                LT = new ListOfTypes(5);
                or = null;
              
        }
        
   
  public void display (){
	
       System.out.println(" The name of predicate is : (("+ getName()+"))" );
       LT.displayTypesOfPredicates(); 

  }
  public void display2 (){ // I added this class because I need (name of predicate) in the class Atom without list of types.
	       System.out.println(" The name of predicate is : (("+ getName()+"))" );
		}
  
        public String getName() {
                return name;
        }

        public ListOfTypes getLT() {
                return LT;
        }

        public Orientation getOr() {
                return or;
        }

        public void setName(String name) {
                this.name = name;
        }

        public void setLT(ListOfTypes Lot) {
                LT = Lot;
        }

        public void setOr(Orientation or) {
                this.or = or;
        }
		
        
        
        
}
